<?php
	session_start();
	include('functions/func_bootstrap.php');
	bootstrap('functions');
?>

<!doctype html>
	<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>My little Gangsters</title>

		<link rel="stylesheet" type="text/css" href="style/style.css">
        <link rel="stylesheet" type="text/css" href="style/menu.css">
        <link rel="stylesheet" type="text/css" href="style/sidemenu.css">
		
		<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">

		<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
		<script type="text/javascript" src="js/main.js"></script>
		<script type="text/javascript" src="js/jquery.countdown.js"></script>
		<script type="text/javascript" src="js/timer.js"></script>
		<script src="ckeditor/ckeditor.js"></script>
	</head>
	<body>
		<div id="wrapper">
			<div id="header">
				<div class="charinfo">
					<div class="inner">
						<?php
							if(isset($_SESSION['user']))
							{
								getAccInfo();
							}
							else
							{
								getLogin();
							}
						?>
					</div>
				</div>
				<a href="index.php"><div class="logo"><img src="img/logo_shadow 217x224.png"></div></a>
			</div>

			<div id="content">
             	
             	<div class="left">
	            	<div id="menu">
	            		<?php
	            			getMenu();
	            		?>
	            	</div>		

	            	<div id="sidemenu">
	            		<div class="category">
							<div class="title">Top 5 Money</div>
							<div class="options"><?php getTop5('money'); ?></div>
	            		</div>
	            		<div class="category">
							<div class="title">Top 5 k/d</div>
							<div class="options"><?php getTop5('kd'); ?></div>
	            		</div>
	            		<div class="category">
							<div class="title">Top 5 Level</div>
							<div class="options"><?php getTop5('level'); ?></div>
	            		</div>
	            	</div>	
	            </div>
		
				<div class="rightcontent">
					<?php 
						getPage();
					?>
				</div>

		    </div>
		</div>
	</body>
	</html>	